package com.polymorphic多态.练习题.练习01;

public class Manager extends Employee{
    private double bonus;

    public Manager(String name, double salary, double bonus) {
        super(name, salary);
        this.bonus = bonus;
    }
    public double getBonus() {
        return bonus;
    }

    public void manage() {
        System.out.println("经理" + getName() + "正在管理");
    }

    public String getAnnual(){
        return "经理：姓名：" + getName() + " 年薪：" + (getSalary()*12+bonus);
    }
}
